<?php


class Application_Model_Profil_Facebook implements Application_Model_Profil_Interface {
	
	protected $_profil;
	protected $_image;
	
	public function __construct($provider)
	{
		$this->_profil = $provider->getApi()->getProfile();
		$this->_image = $provider->getApi()->getPicture();
	}
	
	public function display($input) {
		return $this->_profil[$input];
	}
	/* (non-PHPdoc)
	 * @see Application_Model_Profil_Interface::getFirstName()
	 */public function getFirstName() {
		// TODO Auto-generated method stub
		return $this->display('first_name');
		}

	/* (non-PHPdoc)
	 * @see Application_Model_Profil_Interface::getLastName()
	 */public function getLastName() {
		// TODO Auto-generated method stub
		return $this->display('last_name');
		}

	/* (non-PHPdoc)
	 * @see Application_Model_Profil_Interface::getAvatar()
	 */public function getAvatar() {
		// TODO Auto-generated method stub
		return $this->_image;
		}

	/* (non-PHPdoc)
	 * @see Application_Model_Profil_Interface::getEmail()
	 */public function getEmail() {
		// TODO Auto-generated method stub
		return $this->display('email');
		}

	/* (non-PHPdoc)
	 * @see Application_Model_Profil_Interface::getLocal()
	 */public function getLocale() {
		// TODO Auto-generated method stub
		return $this->display('locale');
		}

	/* (non-PHPdoc)
	 * @see Application_Model_Profil_Interface::getGender()
	 */public function getGender() {
		// TODO Auto-generated method stub
		return $this->display('gender');
		}

}

?>